import { Controller, Get, Version } from '@nestjs/common';
import { AppService } from './app.service';
// import { BusinessException } from './common/filter/business-exception/business.exception';
import { ConfigService } from '@nestjs/config';

@Controller()
export class AppController {
  constructor(
    private readonly appService: AppService,
    private readonly configService: ConfigService,
  ) {}

  // @Get()
  // @Version('1')
  // getHello(): string {
  //   throw new BusinessException('无权限啊');
  //   return this.appService.getHello();
  // }
  // @Get('getTestName')
  // getTestName() {
  //   return this.configService.get('MYSQL_CONFIG').name;
  // }
}
